<template>
  <div>
    <el-pagination
      v-model:current-page="pageNo"
      v-model:page-size="limit"
      :page-sizes="[3, 5, 7, 9]"
      :size="size"
      :disabled="false"
      :background="true"
      layout="prev, pager, next, jumper,->,sizes,total,"
      :total="total"
      @current-change="getHasTrademark"
      @size-change="sizeChange"
    />
  </div>
</template>

<script setup lang="ts">
import { getHasTrademark, total, size, limit, pageNo } from "../index";

const sizeChange = () => {
  //自定义事件默认注入pageSize属性（多少条每页）
  //当每页每页数据量改变时，立马令页码归一
  getHasTrademark();
};
</script>

<style scoped></style>
